panda check a cell value is not a number

37

panda check a cell value is not a number -

In [107]: pd.isnull(df.iloc[1,0])
Out[107]: True

how to check whether a row contains a numeric value or not in df -

>>> df.A.str.isnumeric()
0     True
1      NaN
2      NaN
3     True
4      NaN
5     True
6    False
7    False
Name: A, dtype: object

# df.B.str.isnumeric()

Comments

Submit
0 Comments